package org.example.domain.auth.service;


import org.example.domain.auth.model.entity.UserEntity;

/**
 * @author yinghuashen
 * @version 1.0
 * @description:
 * @date 2025/3/4 10:33
 */

public interface IAuthService {

    void registerUser(String userName, String userPhone, String userPassword);

    boolean loginByPwd(String phone, String userPassword);

    String loginByCode(String phone, String code);

    boolean requestCode(String phone);

    String checkUserOnlineState(String phone);

    /* =============== 未被Service层以外调用 ===============  */

    UserEntity getUserBasicInfoByToken(String token);

}
